package at.jaki.ubb.crawling.components;

import at.jaki.ubb.crawling.api.filters.CEFilter;
import at.jaki.ubb.crawling.api.filters.FilterResult;

/**
 * Wrapper for every filter entity. The Crawling Engine will use every used
 * defied filter though this class.
 * 
 * @param E generic type of filter parameter
 * 
 * @author Attila Jakabfi
 * 
 */
public class CEFilterWrapper<E> {

	private CEFilter<E> filter;
	private String logName;

	public CEFilterWrapper(CEFilter<E> filter) {
		this.filter = filter;
	}

	public String getLogName() {
		return logName;
	}

	public void setLogName(String logName) {
		this.logName = logName;
	}

	public FilterResult doFilter(E e){
		return filter.doFilter(e);
	}
}
